package com.cskaoyan.service;

import com.cskaoyan.bean.MarketPermission;
import com.cskaoyan.bean.MarketRole;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.vo.MarketPermissionsVo;
import com.cskaoyan.bean.vo.MarketRoleVo;

import java.util.List;

/**
 * @author gatsby
 * @since 2022/10/11 23:13
 */
public interface AdminRoleService {
    CommonData<MarketRoleVo> queryAdminRole();

    BaseRespVo<CommonData> queryAdminLimit(BasePageInfo basePageInfo, String username);

    MarketRole createRole(MarketRole marketRole);

    int updateRole(MarketRole marketRole);

    void deleteRole(MarketRole marketRole);

    MarketPermissionsVo queryAllPermissions();

    void authPermissions(List<String> permissions, Integer roleId);
}
